﻿#pragma once

#include <any>

using namespace Client;

namespace Launcher
{
    class Config : public System::Windows::Forms::Form
    {
    public:
        virtual ~Config()
        {
            delete components;
            delete AccountLogin_txt;
            delete AccountPass_txt;
            delete label2;
            delete Res2_pb;
            delete label3;
            delete Res3_pb;
            delete ID_l;
            delete Password_l;
            delete label4;
            delete AutoStart_pb;
            delete AutoStart_label;
            delete Fullscreen_label;
            delete Fullscreen_pb;
            delete OnTop_label;
            delete OnTop_pb;
            delete FPScap_label;
            delete FPScap_pb;
            delete CleanFiles_pb;
            delete pictureBox6;
            delete label9;
            delete label10;
            delete label11;
            delete label12;
            delete label5;
            delete Res4_pb;
            delete label1;
            delete Res5_pb;
        }

        Config();

    private:
        void Config_Load(std::any sender, EventArgs *e);

        void Res1_pb_Click(std::any sender, EventArgs *e);

    public:
        void resolutionChoice(int res);

    private:
        void Res2_pb_Click(std::any sender, EventArgs *e);

        void Res3_pb_Click(std::any sender, EventArgs *e);

        void Config_VisibleChanged(std::any sender, EventArgs *e);

        void AccountLogin_txt_TextChanged(std::any sender, EventArgs *e);

        void AccountPass_txt_TextChanged(std::any sender, EventArgs *e);

        void AccountLogin_txt_Click(std::any sender, EventArgs *e);

        void AccountPass_txt_Click(std::any sender, EventArgs *e);

        void Config_Click(std::any sender, EventArgs *e);

        void Fullscreen_pb_Click(std::any sender, EventArgs *e);

        void FPScap_pb_Click(std::any sender, EventArgs *e);

        void OnTop_pb_Click(std::any sender, EventArgs *e);

        void AutoStart_pb_Click(std::any sender, EventArgs *e);

        void CleanFiles_pb_MouseDown(std::any sender, MouseEventArgs *e);

        void CleanFiles_pb_MouseUp(std::any sender, MouseEventArgs *e);

        void CleanFiles_pb_MouseEnter(std::any sender, EventArgs *e);

        void CleanFiles_pb_MouseLeave(std::any sender, EventArgs *e);

        void CleanFiles_pb_Click(std::any sender, EventArgs *e);

        void Res4_pb_Click(std::any sender, EventArgs *e);

        void Res5_pb_Click(std::any sender, EventArgs *e);


        /// <summary>
        /// Required designer variable.
        /// </summary>
        System::ComponentModel::IContainer *components = nullptr;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected:
        void Dispose(bool disposing) override;

        #pragma region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
    private:
        void InitializeComponent();

        #pragma endregion

        System::Windows::Forms::TextBox *AccountLogin_txt;
        System::Windows::Forms::TextBox *AccountPass_txt;
        System::Windows::Forms::Label *label2;
        System::Windows::Forms::PictureBox *Res2_pb;
        System::Windows::Forms::Label *label3;
        System::Windows::Forms::PictureBox *Res3_pb;
        System::Windows::Forms::Label *ID_l;
        System::Windows::Forms::Label *Password_l;
        System::Windows::Forms::Label *label4;
        System::Windows::Forms::PictureBox *AutoStart_pb;
        System::Windows::Forms::Label *AutoStart_label;
        System::Windows::Forms::Label *Fullscreen_label;
        System::Windows::Forms::PictureBox *Fullscreen_pb;
        System::Windows::Forms::Label *OnTop_label;
        System::Windows::Forms::PictureBox *OnTop_pb;
        System::Windows::Forms::Label *FPScap_label;
        System::Windows::Forms::PictureBox *FPScap_pb;
        System::Windows::Forms::PictureBox *CleanFiles_pb;
        System::Windows::Forms::PictureBox *pictureBox6;
        System::Windows::Forms::Label *label9;
        System::Windows::Forms::Label *label10;
        System::Windows::Forms::Label *label11;
        System::Windows::Forms::Label *label12;
        System::Windows::Forms::Label *label5;
        System::Windows::Forms::PictureBox *Res4_pb;
        System::Windows::Forms::Label *label1;
        System::Windows::Forms::PictureBox *Res5_pb;
    };
}
